package com.yihecloud.client;
 

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.qhgrain.api.comm.IDataDicDubboProvider;

@Service
public class DubboClientDemo implements InitializingBean {

	@Autowired
	@Qualifier("dataDicDubboProvider")
	private IDataDicDubboProvider  dataDicDubboProvider;
	
	public IDataDicDubboProvider getServiceName(){
		return dataDicDubboProvider;
	}

  
	@Override
	public void afterPropertiesSet() throws Exception {
		testGetSystemList();
	}
	
	public static void main(String[] args) {
		com.alibaba.dubbo.container.Main.main(args);
	}
	public void testGetSystemList(){
		getServiceName().getSystemList();
	}
}
